﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="cmd.css" rel="stylesheet" type="text/css">
<title>FiraDisk&amp;WinVBlock使用帮助</title>
</head>

<body>
<h2><a href="./GRUB4DOS8第三方驱动_2.htm">Firadisk驱动帮助</a> <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong>WinVBlock驱动帮助</h2>
<h3>1.驱动安装[以下以32位驱动为例]</h3>
<h4><strong>&nbsp;&nbsp;&nbsp;</strong>(1)直接安装到本机系统</h4>
<p><strong>&nbsp;&nbsp;&nbsp;</strong>方法很多种，可以自行琢磨。。。本帮助提供其中的一种方法。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将以下内容另存为WinVBlock.reg，双击reg导入注册表。</p>
<blockquote>
  <p class="bat">[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wvblk32]<br>
    &quot;DisplayName&quot;=&quot;WinVBlock Virtual Disk Driver&quot;<br>
    &quot;ErrorControl&quot;=dword:00000001<br>
    &quot;Group&quot;=&quot;SCSI miniport&quot;<br>
    &quot;ImagePath&quot;=&quot;system32\\DRIVERS\\wvblk32.sys&quot;<br>
    &quot;Start&quot;=dword:00000000<br>
    &quot;Tag&quot;=dword:00000022<br>
    &quot;Type&quot;=dword:00000001</p>
</blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可以打开命令行工具cmd.exe，输入以下命令启动WinVBlock驱动：<span class="Options">net start wvblk32</span></p>
<h4><strong>&nbsp;&nbsp;&nbsp;</strong>(2)添加到PE内核里</h4>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;把wvblk32.sys加入到winpe映像里面的WXPE\system32\dirvers，修改txtsetup.sif如下</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在<span class="Options">[scsi.load]</span>字段下添加一行</p>
<blockquote>
  <p><span class="bat">wvblk32=wvblk32.sys,4</span></p>
</blockquote>
<h4><strong>&nbsp;&nbsp;&nbsp;</strong>(3)整合到XP安装盘</h4>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;&nbsp;</strong>①修改TXTSETUP.SIF</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;&nbsp;</strong>在<span class="Options">[scsi.load]</span>下面添加一行</p>
<blockquote>
  <p><span class="bat">wvblk32=wvblk32.sys,4</span></p>
</blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;&nbsp;</strong>在<span class="Options">[SourceDisksFiles]</span>添加一行</p>
<blockquote>
  <p class="bat">wvblk32.sys = 100,,,,,,3_,4,1,,,1,4<br>
    wvblk32.inf = 100,,,,,,,20,0,0</p>
</blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;&nbsp;</strong>②然后把wvblk32.sys和inf文件放到I386目录下</p>
<h3>2.驱动的应用</h3>
<p><strong>&nbsp;&nbsp;&nbsp;</strong>(1)制作RAMOS[内存里运行的操作系统]    [基本上与FiraDisk一致]</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong>(2)安装ISO版系统   [基本上与FiraDisk一致]</p>
<h4><strong>&nbsp;&nbsp;&nbsp;</strong>(3)从映像文件启动XP[类似win7的vhd，映像文件无需载入内存] </h4>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>注：①请先向该系统安装WinVBlock</p>
<p> <strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;</strong>②系统映像文件必须是连续存储，如果不是，可以使用contig工具对该系统映像文件进行整理</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;</strong>③FiraDisk的版本必须是v0.0.1.8及以上</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>WinVBlock无需修改boot.ini，直接写grldr菜单即可</p>
<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;方法1：</strong></p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>grldr菜单例子</p>
<blockquote>
  <blockquote>
    <p class="bat">title boot XP from IMG<br>
      find --set-root <span class="Options">/filename.img</span><br>
      map <span class="Options">/filename.img</span> (hd0)<br>
      map --hook<br>
      chainloader (hd0,0)/ntldr</p>
  </blockquote>
</blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>需要注意的是要预防系统运行时其他程序触及并修改该系统镜像。</p>
<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;方法2：</strong></p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>此方法可能减少0x7B蓝屏</p>
<blockquote>
  <blockquote>
    <p> <span class="bat">map </span><span class="Options">(hd0,0)/filename.img</span><span class="bat"> (hd0)<br>
      map --rd-size=2048<br>
      map --mem (rd)+4 (0x55)<br>
      map --hook<br>
      write (0x55) #GRUB4DOS\x00v=1\x00</span><span class="Options">filename.img</span><span class="bat">\x00\x80\x00<br>
      chainloader (hd0)+1</span></p>
  </blockquote>
</blockquote>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>参数解析：</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong> <strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>#GRUB4DOS\x00v=1\x00 : WinVBlock检查签名和版本。</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>filename.img : 告诉WinVBlock去寻找和挂载该文件。</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>\x00 : 文件名的结束。</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>\x66 : 该文件仿真成仿真盘的序号。</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>\x00 : 没有更多的文件要挂载。</p>
<h3>3.驱动自带小工具winvblk.exe</h3>
<p><strong>&nbsp;&nbsp;&nbsp;</strong>目前只介绍其挂载映像功能</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>1.挂载</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>winvblk -cmd attach -m c -u c:\some.iso     挂载iso为光驱（c 代表光驱）</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong> winvblk -cmd attach -m f -u c:\some.vfd     挂载vfd为软驱（f 代表软驱）</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>winvblk -cmd attach -m h -u c:\some.hdd   挂载img为硬盘（h 代表硬盘）</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>2.卸载</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>winvblk.exe -cmd detach -d 磁盘序号</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>例如：</p>
<p><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;</strong>winvblk.exe -cmd detach -d 1</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
</body>
</html>
